package com.example.scheduledtask.controller;

import com.example.scheduledtask.generator.service.TbProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/scheduleTask")
public class ScheduleTaskController {

    @Autowired
    private TbProductService tbProductService;

    @GetMapping("/test")
    public String test() {
        tbProductService.list().forEach(System.out::println);
        return "success";
    }

}
